package com._520it.crm.service.impl;

import com._520it.crm.domain.BankAccount;
import com._520it.crm.mapper.BankAccountMapper;
import com._520it.crm.service.IBankAccountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class BankAccountServiceImpl implements IBankAccountService {
    @Autowired
    private BankAccountMapper bankAccountMapper;
    @Override
    public int deleteByPrimaryKey(Long id) {
        return bankAccountMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(BankAccount record) {
        return bankAccountMapper.insert(record);
    }

    @Override
    public BankAccount selectByPrimaryKey(Long id) {
        return bankAccountMapper.selectByPrimaryKey(id);
    }

    @Override
    public List<BankAccount> selectAll() {
        return bankAccountMapper.selectAll();
    }

    @Override
    public int updateByPrimaryKey(BankAccount record) {
        return bankAccountMapper.updateByPrimaryKey(record);
    }
}
